<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.ld.com/shield/tags" prefix="shield"%>
<%@ taglib uri="http://www.ld.com/system/tags" prefix="system"%>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<%-- 权限判断 --%>
<shield:permssion type="button">
<table class="tab-list shield-table-odd">
    <tr>
        <th class="w50 taCenter">序号</th>
	    <th>角色名称</th>
	    <th class="w50">序号</th>
	    <th >是否系统内置</th>
	    <th>备注</th>
        <th class="operate_icon">操作</th>
    </tr>
<c:forEach var="model" items="${pageBean.resultList }" varStatus="var">
    <tr>
        <td style="text-align: center;">${(pageBean.currentPage -1)*pageBean.pageSize+var.count }</td>
        
	   	<td title="${model.name }">${model.name }</td>
	   	<td title="${model.sort }">${model.sort }</td>
	   	<td title="${model.isSys }"><c:if test="${model.isSys == 1}">是</c:if><c:if test="${model.isSys != 1}">否</c:if></td>
	   	<td title="${model.remarks }">${model.remarks }</td>
	
        <td>
        	<!-- href改为data-url -->
            <a data-url="${ctxPathA }/system/role/show" shieldParams="{'id':'${model.id }'}" class="shieldDialog shield-icon show" viewTitle="角色详情" data-icon-title="查看角色详情"
               viewWidth="800"></a>
            <a data-url="${ctxPathA }/system/role/toAddOrUpdate" shieldParams="{'id':'${model.id }'}"  class="shieldDialog shield-icon update" viewTitle="修改角色" data-icon-title="修改角色"
               viewWidth="600"></a>
               <a data-url="${ctxPathA }/system/role/toRoleUser" shieldParams="{'id':'${model.id }'}"  class="shieldDialog shield-icon" viewTitle="查看成员" data-icon-title="查看成员"
               viewWidth="800"><img src="${ctxPath }/images/icon/people.png?20190829141955" title="查看成员"></a>  
            <a data-url="${ctxPathA }/to/a/system/role/sysrole_perm" shieldParams="{'id':'${model.id }'}"  class="shieldDialog" viewTitle="为角色分配权限" data-icon-title="修改角色"
               viewWidth="350"><img src="${ctxPath }/images/icon/audit_edit.png?20190319105451" title="权限分配"></a>
	<!-- 系统权限不可删除 -->
	<c:if test="${model.isSys != 1}">
            <a data-url="${ctxPathA }/system/role/del" shieldParams="{'id':'${model.id }'}"  class="shieldAjax shield-icon del" viewTitle="确定要删除该条记录吗?"></a>
	</c:if>
        </td>
    </tr>
</c:forEach>
<c:if test="${empty pageBean.resultList }">
 	<!-- 无数据时展示，有数据时展示上面的列表 -->
	<tr class="nodatatr_plugin">
        <td colspan="6" class="taCenter">暂无数据</td>
    </tr>
</c:if>
</table>
</shield:permssion>
<%@include file="/WEB-INF/view/a/include/pagination.jsp"%>
